﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Zebra.Umbraco.Marcos
{
    public class LoginRequiredControl : System.Web.UI.UserControl
    {
        protected override void OnLoad(EventArgs e)
        {
            if (!umbraco.library.IsLoggedOn())
            {
                Response.Redirect("/");
            }
            base.OnLoad(e);
        }
    }
}